import config from "@/config"
import http from "@/utils/request"

export default {
	gaoym_test: {
		url: `${config.API_URL_back}/api/`,
		name: "测试",
		get: async function(){
			return await http.get(this.url);
		}
	},
	Query_Ticket_Info: {
		url: `${config.API_URL_back}/api/query/ticket/info`,
		name: "查询工单信息",
		post: async function(date){
			return await http.post(this.url,date);
		}
	},
	Query_Random_Ticket_Info: {
		url: `${config.API_URL_back}/api/query/random/ticket/info`,
		name: "查询随机十个工单信息",
		post: async function(date){
			return await http.post(this.url,date);
		}
	},
	Query_Ticket_Remark: {
		url:`${config.API_URL_back}/api/query/ticket/remark`,
		name:"查询工单备注",
		post: async function(ticket_sn){
			return await http.post(this.url,ticket_sn)
		}
	},
	Save_Ticket_Flag:{
		url:`${config.API_URL_back}/api/save/ticket/flag`,
		name:"保存工单是否合规的记录",
		post:async function(ticket_flag){
			await http.post(this.url,ticket_flag)
		}
	},
	Query_Remove_Impact:{
		url:`${config.API_URL_back}/api/remove/impact/data`,
		name:"解除服务影响or上升不达标数据",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Up_Follow_Data:{
		url:`${config.API_URL_back}/api/up/follow/data`,
		name:"跟进or结单不达标数据",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Network_Error_Registered:{
		url:`${config.API_URL_back}/api/network/error/registered`,
		name:"网络故障报告-登记情况",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Network_Error_Registered_Detail:{
		url:`${config.API_URL_back}/api/network/error/registered/detail`,
		name:"查询单个网络故障单详细信息",
		post:async function(ticket_sn){
			return await http.post(this.url,ticket_sn)
		}
	},
	Save_NetWork_Ticket_Flag:{
		url:`${config.API_URL_back}/api/save/network/ticket/flag`,
		name:"保存网络故障单是否合规的记录",
		post:async function(ticket_flag){
			await http.post(this.url,ticket_flag)
		}
	},
	Query_Network_Error_Followed:{
		url:`${config.API_URL_back}/api/query/network/error/followed`,
		name:"网络故障报告跟进情况",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Query_Flow_Error_Ticket:{
		url:`${config.API_URL_back}/api/query/flow`,
		name:"流水工单442、478",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Query_Performance_Panel:{
		url:`${config.API_URL_back}/api/performance/panel`,
		name:"监控绩效面板不达标工单(备注小于30分钟)",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Query_Performance_Panel_30:{
		url:`${config.API_URL_back}/api/performance_30/panel`,
		name:"监控绩效面板不达标工单(备注大于30分钟)",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Query_Follow_Grafana:{
		url:`${config.API_URL_back}/api/query/follow/grafana`,
		name:"跟进不达标数据",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Query_Summary_Data:{
		url:`${config.API_URL_back}/api/query/summary/data`,
		name:"总表单汇总数据",
		post:async function(date){
			return await http.post(this.url,date)
		}
	},
	Query_Host:{
		url:`${config.API_URL_back}/api`,
		name:"测试",
		get:async function(){
			await http.get(this.url)
		}
	},
	// gaoym_test(){
	// 	return {
	// 		url: `${config.API_URL_back}/api/`,
	// 		name: "测试",
	// 		get: async function(){
	// 			return await http.get(this.url);
	// 		}
	// 	};
	// }
}